$.isBlank = function(obj){
    return(!obj || $.trim(obj) === "");
};
$.isPhoneNo = function(obj){
    if(/^1[3|4|5|7|8][0-9]\d{8,8}$/g.test(obj)){
        return true;
    }else {
        return false;
    }
};
$.isAscii = function(obj){
    if(/^[\x00-\x7F]+$/g.test(obj)){
        return true;
    }else {
        return false;
    }
};
$.isEmail = function(obj){
    if(/^[\w\-\.]+@[\w\-\.]+(\.\w+)+$/.test(obj)){
        return true;
    }else {
        return false;
    }
};
$.isNumber = function(obj){
    if(/^\d+(\.\d+)?$/.test(obj)){
        return true;
    }else {
        return false;
    }
};
function per2num(per) {
    return per.replace(/([0-9.]+)%/, function (a, b) {return +b / 100;})
};
/**信息提示*/
function showTip(msg,opts) {
	
	var append = "";
	if (opts.hasOwnProperty("fontSize")){
		append = "font-size:"+opts.fontSize+";";
	}
	
    var html = '<p style="text-align: center;margin-top: 20px;'+append+'">' + msg + '</p>';
   
    var opt = {
            title: '温馨提示',
            width: 400,
            height: 180,
            html: html,
            showOkBtn: false,
            showCancelBtn: true,
            cancelBtnName: '关闭',
            onCancel:null
    };
    
    if (typeof(opts)=="undefined"){
    	opts = {};
    }
    
    if (opts.hasOwnProperty("onCancel")){
    	opt["onCancel"] = opts.onCancel;
    }
    if (opts.hasOwnProperty("titleColor")){
    	opt["titleColor"] = opts.titleColor;
    }
    var popbox = new Popbox(opt);
}